home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’96
/
Finder Undo
/
patches.h
< prev
next >
Wrap
Text File
|
1996-06-22
|
1KB
|
29 lines
// patches.h
////////////////////////////////////////////////////////////
typedef pascal void (*InitGrafProc)(void *globalPtr);
typedef pascal OSErr (*Pack8Proc)( short selector:__D0 );
typedef pascal OSErr (*SpecialHandlerProc)
(const AppleEvent *theAppleEvent, const AppleEvent *reply, long handlerRefcon);
typedef pascal long (*MenuSelectProc)(Point startPt);
typedef pascal long (*MenuKeyProc)( short ch );
typedef void (*voidProc) (void);
////////////////////////////////////////////////////////////
void PatchInitGraf(void);
pascal void MyInitGraf( void *globalPtr );
void PatchMenuSelect(void);
void PatchMenuKey(void);
void PatchPack8(void);
pascal asm short MyPack8(register short selector:__D0,AEKeyword keyword, SpecialHandlerProc shp,Boolean isSysHandler);
short MyPack8Helper( AEKeyword keyword, SpecialHandlerProc shp, Boolean isSysHandler,
short selector:__D0 ):__D0;
pascal OSErr MySpecialHandler( const AppleEvent *theAppleEvent,
const AppleEvent *reply, long handlerRefcon );